﻿@{string action = Request.RequestContext.RouteData.Values["action"].ToString();}
<ul class="nav nav-tabs bar_tabs sme-tabs" role="tablist">
    @if (action.ToUpper().Contains("PREAPPROVEDCREDIT"))
    {
        <li role="presentation" class="active" id="cm-tc-tab">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.XSellingPreApprovedCreditCard, "PreApprovedCredit", "Xselling", new { dao = Request.QueryString["dao"] }, null)
        </li>
    }
    else
    {
        <li role="presentation" class="" id="cm-tc-tab">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.XSellingPreApprovedCreditCard, "PreApprovedCredit", "Xselling", new { dao = Request.QueryString["dao"] }, null)
        </li>
    }
    @if (action.ToUpper() == "PREAPPROVEDBIL")
    {
        <li role="presentation" class="active" id="cm-tc-tab">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.XSellingPreApprovedBil, "PreApprovedBil", "Xselling", new { dao = Request.QueryString["dao"] }, null)
        </li>
    }
    else
    {
        <li role="presentation" class="" id="cm-tc-tab">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.XSellingPreApprovedBil, "PreApprovedBil", "Xselling", new { dao = Request.QueryString["dao"] }, null)
        </li>
    }
    @if (action.ToUpper() == "PREAPPROVEDWC")
    {
        <li role="presentation" class="active" id="cm-tc-tab">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.XSellingPreApprovedWC, "PreApprovedWC", "Xselling", new { dao = Request.QueryString["dao"] }, null)
        </li>
    }
    else
    {
        <li role="presentation" class="" id="cm-tc-tab">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.XSellingPreApprovedWC, "PreApprovedWC", "Xselling", new { dao = Request.QueryString["dao"] }, null)
        </li>
    }
</ul>